package com.zenika.zenbinding.client.feedback;

import com.zenika.zenbinding.client.exception.DataMessage;
import com.zenika.zenbinding.client.handler.Handler;

/**
 * FeedbackManager is used to modify the view due to a validation or conversion
 * error of the model.
 * @author Zenika
 */
public interface FeedbackManager {

	/**
	 * Indicate that a Model enter in an error state. It take in parameter the
	 * message sent by the converter or validator.
	 * @param message
	 */
	public void enterErrorState(DataMessage message, Handler handler);

	/**
	 * Indicate that the Model leave the error state;
	 */
	public void leaveErrorState(Handler handler);

}
